<?php echo $this->render('index/header.phtml') ?>

<!-- content -->
<div id="content-container" class="clearfix">
	<div id="main_content">
		<div id="breadcrumbs">
			<ul>
			    <li><a href="<?php echo DOMAIN; ?>">Trang chủ</a></li>
			    <?php if($this->gid==0){ ?>
			    <li class="no_background"><a href="/thong-tin-thi-truong.html"> Thông tin thị trường </a></li>
			    <?php }else { ?>
			    <li class="no_background">
			    	<a href="/thong-tin-thi-truong/<?php echo $this->category['title_alias']; ?>-<?php echo $this->category['GroupNoteID']; ?>.html" title="<?php echo $this->category['name_group']; ?>">
					    <?php echo $this->category['name_group']; ?>
					</a> 
			   	</li>
			    <?php }?>
			</ul>
		</div>
		
		<!-- noi dung -->
		<?php if($this->note_lists):?>
		<?php 
		$i=1;
	    foreach ($this->note_lists as $note_list) :          	    	
	    	if($note_list['link_images_thumb']=="") $note_list['link_images_thumb']="/images/home/no_image.gif";
	    ?>
			<div class="box_cate">
				<div class="img_box_cate">
					<a href="/post/<?php echo $note_list['title_alias'];?>-<?php echo $note_list['idnote'];?>.html" title="<?php echo $note_list['name_note'];?>">
						<img src="<?php echo $note_list['link_images_thumb'];?>" alt="<?php echo $note_list['name_note'];?>" />
					</a>
				</div>
				<h2 class="tit_box_cate">
					<a href="/post/<?php echo $note_list['title_alias'];?>-<?php echo $note_list['idnote'];?>.html" title="<?php echo $note_list['name_note'];?>">
							<?php echo $note_list['name_note'];?>
					</a>
				</h2>
				<p>
					<?php echo $note_list['description']; ?>
				</p>
			</div>
		<?php 
			$i++;
			endforeach;?>
		<?php endif; ?>
		<div class="clear"></div>
		<!-- end noi dung-->

		<div class="clear"></div>
		<!-- page tai day -->
		<div id="page"> 
			<!-- phan trang -->
			<div class="clear"></div>
			<link type="text/css" rel="stylesheet" href="/js/paging_jquery/css/styles.css" />
			<div class="page_navigation">

				<?php for($i=1; $i<=$this->countpage; $i++){ ?>
					

					<?php if($this->gid==0){ ?>
				   		<a class="page_link <?php if($this->page == $i) echo 'active_page'; ?>" href="/thong-tin-thi-truong.html?page=<?php echo $i;?>"><?php echo $i;?></a>
				    <?php }else { ?>
				    	<a class="page_link <?php if($this->page == $i) echo 'active_page'; ?>" href="/thong-tin-thi-truong/<?php echo $this->category['title_alias']; ?>-<?php echo $this->category['GroupNoteID']; ?>.html?page=<?php echo $i;?>"><?php echo $i;?></a>
				    <?php }?>

				<?Php
				}
				?>
			</div>
			<!-- end phan trang -->
		</div><!-- page -->
	</div><!-- main_content -->

	<!-- right bar -->
	<?php echo $this->render('index/home-right.phtml') ?>
	<!-- end right bar -->
</div><!-- content-container -->
<!-- end content -->

<?php echo $this->render('index/footer.phtml') ?>